﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.DialogUI {
    import flash.utils.*;
    import org.aswing.*;
    import org.aswing.geom.*;
    import org.aswing.ext.*;

    public class CrewCellFactory implements GridListCellFactory {

        protected var m_assets:Dictionary;
        protected var m_preferredCellSize:IntDimension;

        public function CrewCellFactory(_arg1:Dictionary, _arg2:IntDimension=null){
            this.m_assets = _arg1;
            this.m_preferredCellSize = _arg2;
        }
        public function get assets():Dictionary{
            return (this.m_assets);
        }
        public function get preferredCellWidth():int{
            if (this.m_preferredCellSize){
                return (this.m_preferredCellSize.width);
            };
            return (0);
        }
        public function get preferredCellHeight():int{
            if (this.m_preferredCellSize){
                return (this.m_preferredCellSize.height);
            };
            return (0);
        }
        public function createNewGridListCell():GridListCell{
            return (new CrewCell(this, new SoftBoxLayout(SoftBoxLayout.X_AXIS, 0, SoftBoxLayout.LEFT)));
        }

    }
}//package Display.DialogUI 
